package py.edu.ucsa.sisalews.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SisalewsApplicationContextProvider implements ApplicationContextAware{
	

	private static ApplicationContext sisalewsApplicationContext;
	private Logger log = LoggerFactory.getLogger(getClass());
		
	public void setApplicationContext(final ApplicationContext applicationContext) throws BeansException {
		log.debug("setting spring context");
		sisalewsApplicationContext = applicationContext;		
	}

	public static ApplicationContext getContext() {
		return sisalewsApplicationContext;
	}


}
